findElementByName

public abstract Optional<Element> findElementByName(String name)

Returns the first Element object found in the current search context by the given name. Returns an empty Optional if no element was found.

Parameters

name

a string that represents the name attribute of the HTML element

Throws

if the given name is empty

when this instance is closed